<template>
  <div>
    <favoritem :itemdata="favordata.data?.items"></favoritem>
  </div>
</template>


<script setup>
import favoritem from './favoritem.vue';
import usefavor from "../../store/moduels/favor"
import { storeToRefs } from 'pinia';
import { onMounted } from 'vue';

const favorstore=usefavor()
const {favordata} =storeToRefs(favorstore)
favorstore.fetchfavor()

onMounted(()=>{
      // console.log("高度", document.documentElement.clientHeight);
  })
</script>


<style scoped>


</style>